Skip to content

Conversation

@xMartin
Copy link
Contributor

@xMartin xMartin commented Oct 13, 2014

When using backbone.subroute with browserify requiring it returns an empty object. I guess I could just use the export of the backbone module after requiring backbone.subroute but that is a bit ugly.

I want

var SubRouter = require('backbone.subroute');
var foo = SubRouter.extend({
   ...

@geekdave
Copy link
Contributor

Looks good to me.

geekdave added a commit that referenced this pull request Oct 13, 2014
actually export the router when used as CommonJS module
@geekdave geekdave merged commit 08c02cf into BackboneSubroute:master Oct 13, 2014
@geekdave
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants